﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyGiaoVuDAL.Repositories.DatabaseRepositories;
using QuanLyGiaoVuDAL.DTO;

namespace QuanLyGiaoVuService.ReportServices
{
    public class DeTaiReportService:IDeTaiReportService
    {
        private IDeTaiRepository _deTaiRepository;
        public DeTaiReportService(IDeTaiRepository deTaiRepository)
        {
            _deTaiRepository = deTaiRepository;
        }
        public DeTaiDTO GetDeTaiById(Guid maDeTai)
        {
            return _deTaiRepository.GetDeTaiById(maDeTai);
        }
        public IEnumerable<DeTaiDTO> GetAllDeTai(Guid? maGiangVien1, Guid? maGiangVien2, Guid? maHocKy, Guid? maNamHoc, bool? daDuyet, bool? datYeuCau)
        {
            return _deTaiRepository.GetAllDeTai(maGiangVien1, maGiangVien2, maHocKy, maNamHoc, daDuyet, datYeuCau);
        }
        public IEnumerable<DeTaiDTO> GetAllDeTaiGiangVien(Guid GiangVienHD1, Guid maHocKy,bool? daDuyet)
        {
            return _deTaiRepository.GetAllDeTaiGiangVien(GiangVienHD1, maHocKy,daDuyet);
        }
        public IEnumerable<DeTaiDTO> GetAllDeTaiNamHoc(Guid MaNamHoc)
        {
            return _deTaiRepository.GetAllDeTaiNamHoc(MaNamHoc);
        }
    }
}
